package com.winshare.saleAssistant.dao;

import com.winshare.saleAssistant.domain.entity.SupplierDO;
import com.winshare.saleAssistant.domain.query.SupplierQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface SupplierMapper {
    
    int countBySupplier(SupplierDO supplierDO);

    int saveSupplier(SupplierDO supplierDO);

    int updateSupplier(SupplierDO supplierDO);

    SupplierDO getSupplier(SupplierDO supplierDO);

    int deleteSupplier(SupplierDO supplierDO);

    int querySupplierCount(SupplierQuery supplierQuery);

    List<SupplierDO> findSupplierListByConditions(SupplierQuery supplierQuery);
}
